package easysearch.classes
{
	import com.facebook.graph.FacebookDesktop;
	
	public class Events
	{

			public var resultType:String = "Event";
			public var eventID:String;
			public var photoURL:String;
			public var name:String;
			public var description:String;
			public var venue:String;
			public var owner:String;
			
			public function Events(json:Object){
				eventID = json.id;
				photoURL = FacebookDesktop.getImageUrl(eventID, "large");
				name = json.name;
				description = json.description;
				venue = json.venue.street + " " + json.venue.city + " " + json.venue.state;
				owner = json.owner.name;
			}
	}
}